package com.tv.nextin.bean;


import android.os.Parcel;
import android.os.Parcelable;

public class Category implements Parcelable{
	String name;
	String urlIcon;
	
	
	
	public Category(String category){
		super();
		this.name = category;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrlIcon() {
		return urlIcon;
	}

	public void setUrlIcon(String urlIcon) {
		this.urlIcon = urlIcon;
	}
	
	public Category(Parcel in){
		name = in.readString();
		urlIcon = in.readString();
	}

	public Category(){
		
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int arg1) {
		dest.writeString(name);
		dest.writeString(urlIcon);
	}
	
	public static final Parcelable.Creator<Category> CREATOR = new Parcelable.Creator<Category>() {
		public Category createFromParcel(Parcel in) {
			return new Category(in);
		}

		public Category[] newArray(int size) {
			return new Category[size];
		}
	};

}
